import axios from "../../utils/axios";
// certification/addOrUpdateCertification 资质提交
export function addOrUpdateCertification(query) {
    return axios({
        url: "/certification/addOrUpdateCertification",
        method: "post",
        data: query
    });
}
// 新一级列表查询 /Classification/getCommodityTopCategoryHDPage获取商品分类列表
export function getCommodityTopCategoryHDPage(query) {
    return axios({
        url: "/goldendays-goods/classification/getCommodityTopCategoryHDPage",
        method: "get",
        params: query
    });
}
// 新次级列表查询 /Classification/getCommoditySublevelList获取商品次级分类列表
export function getCommoditySublevelList(query) {
    return axios({
        url: "/goldendays-goods/classification/getCommoditySublevelList",
        method: "get",
        params: query
    });
}
// /entityBusiness/getCheckUser总后台体验商城申请列表
export function getCheckUser(query) {
    return axios({
        url: "/entityBusiness/getCheckUser",
        method: "post",
        data: query
    });
}
// 一级列表
export function getTopList(query) {
    return axios({
        url: "/goldendays-goods/Classification/getTopList",
        method: "get",
        params: query
    });
}
// 添加一二三级添加
export function addCategory(data) {
    return axios({
        url: "/goldendays-goods/Classification/addCategory",
        method: "post",
        data: data
    });
}
// 更新一二三级添加
export function uodateCategory(data) {
    return axios({
        url: "/goldendays-goods/Classification/uodateCategory",
        method: "post",
        data: data
    });
} // 更新一二三级添加
export function certificationInfo(data) {
    return axios({
        url: "/certification/certificationCheck",
        method: "post",
        data: data
    });
}

// 一二三级删除
export function delCategory(data) {
    return axios({
        url: "/goldendays-goods/Classification/delCategory",
        method: "put",
        data: data
    });
}

// 二级列表
export function getSecondList(query) {
    return axios({
        url: "/goldendays-goods/Classification/getSecondList",
        method: "get",
        params: query
    });
}

//三级列表
export function getThirdList(query) {
    return axios({
        url: "/goldendays-goods/Classification/getThirdList",
        method: "get",
        params: query
    });
}

//分类
export function getCategory(query) {
    return axios({
        url: "/goldendays-goods/classification/getCategory",
        method: "get",
        params: query
    });
}
// /Classification/getBusCommodityTopCategoryById 根据id获取类目信息
export function getBusCommodityTopCategoryById(query) {
    return axios({
        url: "/goldendays-goods/Classification/getBusCommodityTopCategoryById",
        method: "get",
        params: query
    });
}
// /settled/getDetailById 根据类名id获取类目名称
export function getDetailById(query) {
    return axios({
        url: "/goldendays-goods/template/getDetailById",
        method: "get",
        params: query
    });
}
